import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)
const CrmMenu = {
  path: '/customerManager',
  component: Layout,
  name: '客户管理',
  meta: {
    title: '客户管理',
    icon: 'chart'
  },
  icon: 'chart',
  authority: 'customerManager',
  children: [{
    path: 'customerBaseManager',
    component: _import('crm/customers/customerBase'),
    name: '客户基础信息',
    meta: {
      title: '客户基础信息',
      icon: 'tab'
    },
    authority: 'customerBaseManager'
  }, {
    path: 'merchantManager',
    component: _import('crm/customers/merchantBase'),
    name: '企业客户信息',
    meta: {
      title: '企业客户信息',
      icon: 'tab'
    },
    authority: 'merchantManager'
  }, {
    path: 'personalManager',
    component: _import('crm/customers/personalsBase'),
    name: '个人客户信息',
    meta: {
      title: '个人客户信息',
      icon: 'tab'
    },
    authority: 'personalManager'
  }, {
    path: 'personalBaseDetail',
    component: _import('crm/customers/personalBaseDetail'),
    name: '客户详情',
    meta: {
      title: '客户详情',
      icon: 'tab'
    },
    authority: 'personalBaseDetail',
    authFlag: false
  }, {
    path: 'merchantBaseDetail',
    component: _import('crm/customers/merchantBaseDetail'),
    name: '商户详情',
    meta: {
      title: '商户详情',
      icon: 'tab'
    },
    authority: 'merchantBaseDetail',
    authFlag: false
  }]
}
export default CrmMenu
